import { ipcRenderer } from "electron";


const nodeApi = {
    exec: (path: string, name: string, args?: string) => ipcRenderer.invoke('node:exec', path, name, args),
    exec_stream: (path: string, name: string, args?: string) => ipcRenderer.invoke('node:exec_stream', path, name, args),
    run_yarn: (path: string, args?: string) => ipcRenderer.invoke('node:run_yarn', path, args),
    run_yarn_stream: (path: string, args?: string) => ipcRenderer.invoke('node:run_yarn_stream', path, args),

}

export default nodeApi